package com.hanZhe.shiro;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.omg.CORBA.PUBLIC_MEMBER;

/**
 * MD5加密
 * Created by shw on 2018-02-27.
 */
public class MD5 {

    public static void main(String[] args) {
    String hashAlgorithmName="MD5";
    Object credentials="123";
    Object salt="shw";
    int hashIterations=1024;

    Object result=new SimpleHash(hashAlgorithmName,credentials,salt,hashIterations);
    System.out.println(result);

    }
}
